package com.suning.sawp.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 现金充值错误类<br> 
 * 〈功能详细描述〉
 *
 * @author Wuxiao
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class PreChargeErrorConstants {

    private PreChargeErrorConstants() {
    }
    
    public static final Map<String, String> PRECHARGE_ERR_MAP = new HashMap<String, String>();
    
    public static final String PRECHARGE_ERR_E999 = "E999";
    
    public static final String PRECHARGE_ERR_E888 = "E888";
    
    public static final String PRECHARGE_ERR_E001 = "E001";
    
    public static final String PRECHARGE_ERR_E002 = "E002";
    
    public static final String PRECHARGE_ERR_E003 = "E003";
    
    public static final String PRECHARGE_ERR_E004 = "E004";
    
    public static final String PRECHARGE_ERR_E005 = "E005";
    
    public static final String PRECHARGE_ERR_E006 = "E006";
    
    public static final String PRECHARGE_ERR_E007 = "E007";
    
    public static final String PRECHARGE_ERR_E008 = "E008";
     static {
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E999, "系统异常,请稍后重试");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E888, "签名验证失败");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E001, "当前门店暂无活动");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E002, "当前城市暂无活动");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E003, "入参不合法");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E004, "同一订单流水不能重复支付");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E005, "用户非融合会员");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E006, "活动信息不存在");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E007, "掉用POS接口查询店员充值记录失败");
         PRECHARGE_ERR_MAP.put(PRECHARGE_ERR_E008, "掉用POS接口查询预充值汇总信息失败");
     }
    public static final String POS_ERR_E001 = "1";
    public static final String POS_ERR_E002 = "2";
    public static final String POS_ERR_E003 = "3";
    public static final String POS_ERR_E004 = "4";
    public static final String POS_ERR_E005 = "5";
    public static final String POS_ERR_E006 = "6";
    public static final String POS_ERR_E007 = "7";
    public static final String POS_ERR_E008 = "8";
    public static final String POS_ERR_E666 = "666";
    public static final String POS_ERR_E777 = "777";
    public static final String POS_ERR_E888 = "888";
    public static final String POS_ERR_E999 = "999";
    /**
     * POS接口返回错误信息
     */
    public static final Map<String, String> POS_ERR_MAP = new HashMap<String, String>();
    static {
        POS_ERR_MAP.put(POS_ERR_E001, "无生效返券规则");
        POS_ERR_MAP.put(POS_ERR_E002, "充值金额不满足返券规则");
        POS_ERR_MAP.put(POS_ERR_E003, "额度不足");
        POS_ERR_MAP.put(POS_ERR_E004, "调会员中心失败");
        POS_ERR_MAP.put(POS_ERR_E005, "超过最大充值次数");
        POS_ERR_MAP.put(POS_ERR_E666, "调用POS接口异常");
        POS_ERR_MAP.put(POS_ERR_E777, "POS返回报文未空");
        POS_ERR_MAP.put(POS_ERR_E888, "调用POS接口超时");
        POS_ERR_MAP.put(POS_ERR_E999, "其他失败");
    }
    /**
     * 客户端展示充值返回错误信息
     */
    public static final Map<String, String> CLIENT_ERR_MAP = new HashMap<String, String>();
    static {
        CLIENT_ERR_MAP.put(POS_ERR_E001, "对不起，当前选择的预充值券活动不存在");
        CLIENT_ERR_MAP.put(POS_ERR_E002, "对不起，当前选择的充值金额不满足活动规则");
        CLIENT_ERR_MAP.put(POS_ERR_E003, "对不起，当前选择的门店预充值活动额度不足，无法为您充值");
        CLIENT_ERR_MAP.put(POS_ERR_E004, "对不起，充值过程调取会员中心失败，请重试");
        CLIENT_ERR_MAP.put(POS_ERR_E005, "对不起，您的充值次数已达上限");
        CLIENT_ERR_MAP.put(POS_ERR_E006, "工号oaAccountNo的员工，今天充值订单数量已达maxChargeTimes笔上限");
        CLIENT_ERR_MAP.put(POS_ERR_E007, "达到需要校验次数");
        CLIENT_ERR_MAP.put(POS_ERR_E008, "不在充值时间内");
        CLIENT_ERR_MAP.put(POS_ERR_E999, "对不起，因未知原因导致充值操作失败，请稍后重试");
    }
    
    public static final String POS_SMS_ERR_E001 = "E001";
    public static final String POS_SMS_ERR_E002 = "E002";
    public static final String POS_SMS_ERR_E003 = "E003";
    public static final String POS_SMS_ERR_E004 = "E004";
    public static final String POS_SMS_ERR_E005 = "E005";
    /**
     * POS接口返回错误信息
     */
    public static final Map<String, String> POS_SMS_ERR_MAP = new HashMap<String, String>();
    static {
        POS_SMS_ERR_MAP.put(POS_SMS_ERR_E001, "达到当天发送短信次数限制");
        POS_SMS_ERR_MAP.put(POS_SMS_ERR_E002, "未查询到订单信息");
        POS_SMS_ERR_MAP.put(POS_SMS_ERR_E003, "订单未充值成功");
        POS_SMS_ERR_MAP.put(POS_SMS_ERR_E004, "调用短信平台发送失败");
        POS_SMS_ERR_MAP.put(POS_SMS_ERR_E005, "入参错误");
    }
    /**
     * 校验充值时间  可以充值
     */
    public static final String VALID_CHARGE_TIME_Y = "1";
    /**
     * 校验充值时间  超过充值时间
     */
    public static final String VALID_CHARGE_TIME_N = "0";
    
    /**
     * 校验用户密码 成功
     */
    public static final String VALID_PWD_Y = "1";
    /**
     * 校验用户密码 失败
     */
    public static final String VALID_PWD_N = "0";
    /**
     * 查询券剩余额度 成功标志
     */
    public static final String QUREY_REMIAN_SUCCESS = "0";
    /**
     * 查询券剩余额度 失败标志
     */
    public static final String QUREY_REMIAN_FAILED = "1";
}
